﻿//------------------------------------------------------------------------------ 
// <copyright file="ValidateControl.cs" company="Fm Computer">
//     Copyright (c) Fm Computer di Menatti Fulvia.  All rights reserved.
// </copyright>
//----------------------------------------------------------------------------- 
namespace FmjQuery
{
    /// <summary>
    /// Validate Control Descriptor
    /// </summary>
    public class ValidateControl
    {
        /// <summary>
        /// Gets or sets IDControl
        /// </summary>
        public string IDControl
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets a value indicating whether is client control
        /// </summary>
        public bool IsClientControl
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets Type of validation
        /// </summary>
        public ValidationType Type
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets name client function that call when is not valid control
        /// </summary>
        public string ClientNotValid
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets name client function that call when is valid control
        /// </summary>
        public string ClientValid
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets CssClass for not valid control
        /// </summary>
        public string CssClass
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets start range
        /// </summary>
        public string Minimun
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets end range
        /// </summary>
        public string Maximun
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets RegularExpression
        /// </summary>
        public string RegularExpression
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets Compare Value
        /// </summary>
        public string CompareValue
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets Compare ControlID.
        /// </summary>
        public string CompareControlID
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets a value indicating whether is client compare control
        /// </summary>
        public bool IsCompareControlClient
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets Compare Type
        /// </summary>
        public CompareOperator CompareType
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets range type
        /// </summary>
        public RangeType TypeRange 
        { 
            get; 
            set; 
        }

        /// <summary>
        /// Gets or sets Extra Alert Type
        /// </summary>
        public ExtraAlert? TypeExtraAlert 
        { 
            get; 
            set; 
        }

        /// <summary>
        /// Gets or sets css for extra alert
        /// </summary>
        public string ExtraCss
        {
            get; 
            set;
        }
    }
}